<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
export default {
  name: 'App',
  created(){
    (async () => {
      const result = await this.$service.adminSystemGetSystemConfigNoToken();
      if (result.code === 0) {
        window.document.title = result.data.seoTitle
        this.$store.dispatch('SetSiteInfo', result.data)
      }
    })();
  }
}
</script>
